package com.sk1.model;

import javax.persistence.*;

@Entity
public class Notify {
    private int id;
    private String title;
    private String content;
    private String startTime;
    private String endTime;
    private String totalTime;
    private String createTime;
    private String modifyTime;
    private String appType;
    private String clientType;
    private String status;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "title")
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Basic
    @Column(name = "content")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Basic
    @Column(name = "startTime")
    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    @Basic
    @Column(name = "endTime")
    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    @Basic
    @Column(name = "totalTime")
    public String getTotalTime() {
        return totalTime;
    }

    public void setTotalTime(String totalTime) {
        this.totalTime = totalTime;
    }

    @Basic
    @Column(name = "createTime")
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "modifyTime")
    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Basic
    @Column(name = "appType")
    public String getAppType() {
        return appType;
    }

    public void setAppType(String appType) {
        this.appType = appType;
    }

    @Basic
    @Column(name = "clientType")
    public String getClientType() {
        return clientType;
    }

    public void setClientType(String clientType) {
        this.clientType = clientType;
    }

    @Basic
    @Column(name = "status")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Notify notify = (Notify) o;

        if (id != notify.id) return false;
        if (title != null ? !title.equals(notify.title) : notify.title != null) return false;
        if (content != null ? !content.equals(notify.content) : notify.content != null) return false;
        if (startTime != null ? !startTime.equals(notify.startTime) : notify.startTime != null) return false;
        if (endTime != null ? !endTime.equals(notify.endTime) : notify.endTime != null) return false;
        if (totalTime != null ? !totalTime.equals(notify.totalTime) : notify.totalTime != null) return false;
        if (createTime != null ? !createTime.equals(notify.createTime) : notify.createTime != null) return false;
        if (modifyTime != null ? !modifyTime.equals(notify.modifyTime) : notify.modifyTime != null) return false;
        if (appType != null ? !appType.equals(notify.appType) : notify.appType != null) return false;
        if (clientType != null ? !clientType.equals(notify.clientType) : notify.clientType != null) return false;
        if (status != null ? !status.equals(notify.status) : notify.status != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (title != null ? title.hashCode() : 0);
        result = 31 * result + (content != null ? content.hashCode() : 0);
        result = 31 * result + (startTime != null ? startTime.hashCode() : 0);
        result = 31 * result + (endTime != null ? endTime.hashCode() : 0);
        result = 31 * result + (totalTime != null ? totalTime.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        result = 31 * result + (modifyTime != null ? modifyTime.hashCode() : 0);
        result = 31 * result + (appType != null ? appType.hashCode() : 0);
        result = 31 * result + (clientType != null ? clientType.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        return result;
    }
}
